
class Base(object):

    @classmethod
    def from_dict(cls, attrs):
        clean_dict = cls.make_record(attrs)
        c = cls(**clean_dict)
        return c

    @classmethod
    def set_schema(cls, schema):
        cls.__table__.schema = schema
